package com.shakev.coupon.es.service;

import com.shakev.coupon.es.model.GoodsCond;
import com.shakev.coupon.taobao.model.GoodsDetail;
import org.springframework.data.domain.Page;

import java.util.Map;

/**
 * @ClassName EGoodsDetailService
 * @Description TODO
 * @Author 李伟松
 * @CreateDate 2019-05-29 上午 10:03
 * @UpdateDate 2019-05-29 上午 10:03
 * @Version 1.0
 */
public interface EGoodsDetailService extends EsService<GoodsDetail> {

    Page<GoodsDetail> pageQueryByCid(Integer pageNo, Integer pageSize, GoodsCond gc);

    Page<GoodsDetail> pageQueryByOneCid(Integer pageNo, Integer pageSize, GoodsCond gc);

    Map<Long, GoodsDetail> queryMapByItemids(String[] itemIds);

    Page<GoodsDetail> search(Integer pageNo, Integer pageSize, String keywords);

    GoodsDetail findById(Long id);
}
